package com.atguigu.gulimall.member.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;
import com.atguigu.gulimall.member.exception.MemberPhoneExsitException;
import com.atguigu.gulimall.member.exception.MemberUsernameExsitException;
import com.atguigu.gulimall.member.vo.MemberLoginVo;
import com.atguigu.gulimall.member.vo.MemberRegistVo;
import com.atguigu.gulimall.member.vo.SocialUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * 会员
 *
 * @author tianfengbo
 * @email tianfengbo@gmail.com
 * @date 2021-06-10 21:01:44
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo registVo);
    void checkUserUsername(String username) throws MemberUsernameExsitException;
    void checkUserPhone(String phone) throws MemberPhoneExsitException;

    MemberEntity login(MemberLoginVo loginVo);

    MemberEntity login(SocialUser user) throws Exception;
}

